import Base from "./base";
const api = new Base();
// 新增团购规则
export const addGroupRule = (data: any) => api.post("/sysTenantRule", data);
// 修改团购规则
export const updateGroupRule = (data: any) =>
  api.patch(`/sysTenantRule/${data.id}`, data);
// 删除团购规则
export const delGroupRule = (id: string) => api.delete(`/sysTenantRule/${id}`);
// 查询团购规则列表
export const getGroupRuleList = (data: any) =>
  api.get("/sysTenantRule/page", data);
// 查询团购规则
export const getGroupRule = (id: string) => api.get(`/sysTenantRule/${id}`);
